package com.miukoo.aikao.qexam.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.miukoo.aikao.core.pojos.BaseModel;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
* <p>
* 考试实体类
* </p>
*
* @author 聪明笨狗
* @since 2020-07-25 16:18
*/
@Setter
@Getter
@TableName("el_exam")
public class Exam extends BaseModel<Exam> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 考试名称
     */
    private String title;

    /**
     * 考试描述
     */
    private String content;

    /**
     * 1公开2部门3定员
     */
    @TableField("open_type")
    private Short openType;

    /**
     * 组题方式1题库,2指定
     */
    @TableField("join_type")
    private Short joinType;

    /**
     * 考题排序 比如0同题同序1同题不同序2不同题
     */
    @TableField("order_type")
    private Short orderType;

    /**
     * 难度:0不限,1普通,2较难
     */
    private Short level;

    /**
     * 考试状态
     */
    private Short state;

    /**
     * 是否限时
     */
    @TableField("time_limit")
    private Boolean timeLimit;

    /**
     * 开始时间
     */
    @TableField("start_time")
    private Date startTime;

    /**
     * 结束时间
     */
    @TableField("end_time")
    private Date endTime;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;

    /**
     * 总分数
     */
    @TableField("total_score")
    private Short totalScore;

    /**
     * 总时长（分钟）
     */
    @TableField("total_time")
    private Short totalTime;

    /**
     * 及格分数
     */
    @TableField("qualify_score")
    private Short qualifyScore;

    @Override
    public Serializable pkVal() {
        return id;
    }
}
